#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
using namespace std;

int cal(int* array, int n) {
    int sum = 0;
    for (int i = 0; i < n; i++) {
        sum += *(array + i);
    }
    return sum;
}

int main() {
    int n = 0;
    int arr[50];

    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> arr[i];
    }
    int sum = cal(arr, n);
    cout << sum << endl;
    return 0;
}







